package com.tanhua.server.utils;

import com.tanhua.server.pojo.User;

/**
 * @description:
 * @author: Administrator
 * @date: Created in 2021/2/20 20:32
 * @version: 0.0.1
 * @modified By:
 */
public class UserThreadLocal {
    private static final ThreadLocal<User>LOCAL=new ThreadLocal<User>();
    private UserThreadLocal(){

    }
    public static void set(User user){
        LOCAL.set(user);
    }
    public static User get(){
       return LOCAL.get();
    }
}
